package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysHpRoadConditionMapper implements RowMapper<SysHpRoadCondition> {
    @Override
    public SysHpRoadCondition mapRow(ResultSet rs, int rowNum) throws SQLException {
        SysHpRoadCondition sysHpRoadCondition=new SysHpRoadCondition();
        sysHpRoadCondition.setInterId(rs.getString("interId"));
        sysHpRoadCondition.setSpotCode(rs.getString("spotCode"));
        sysHpRoadCondition.setRoadId(rs.getString("roadId"));
        sysHpRoadCondition.setInterName(rs.getString("interName"));
        sysHpRoadCondition.setRoadName(rs.getString("roadName"));
        sysHpRoadCondition.setIs_signLight(rs.getInt("is_signLight"));
        sysHpRoadCondition.setIs_corner(rs.getInt("is_corner"));
        sysHpRoadCondition.setRoadCoordinate(rs.getString("roadCoordinate"));
        sysHpRoadCondition.setRoadLen(rs.getString("roadLen"));
        sysHpRoadCondition.setRecordTime(rs.getString("recordTime"));
        sysHpRoadCondition.setUpdateTime(rs.getString("updateTime"));
        return sysHpRoadCondition;
    }
}
